package com.learn.ert.service.impl;

import com.learn.ert.mapper.ErInformationTypeMapper;
import com.learn.ert.pojo.ErInformationTypeEntity;
import com.learn.ert.service.ErInformationTypeService;
import com.learn.ert.utils.PageUtils;
import com.learn.ert.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


@Service("erInformationTypeService")
public class ErInformationTypeServiceImpl extends ServiceImpl<ErInformationTypeMapper, ErInformationTypeEntity> implements ErInformationTypeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ErInformationTypeEntity> page = this.page(
                new Query<ErInformationTypeEntity>().getPage(params),
                new QueryWrapper<ErInformationTypeEntity>()
        );

        return new PageUtils(page);
    }

}